import request from '@/utils/request'

// 汽车道闸
export function getDeviceList(data) {
    return request({
      url: '/system/parking/device',
      method: 'post',
      params: data
    })
  }
  // 添加/编辑道闸
  export function addUpDevice(data) {
    return request({
      url: '/system/parking/device/save',
      method: 'post',
      upFile:true,
      data
    })
  }
  // 汽车道闸删除
  export function deleteDevice(data) {
    return request({
      url: '/system/parking/device/delete',
      method: 'post',
      params: data
    })
  }
  // 停车管理-出入记录/当前停留
  // state:固定传1 就是查询只进未出的车辆
  // license:筛选条件-车牌号
  export function recordQuery(data) {
    return request({
      url: '/system/parking/record/query',
      method: 'post',
      params: data
    })
  }
  // 出入记录导出
  export function recordExport(data) {
    return request({
      url: '/system/parking/record/export',
      method: 'post',
      params: data
    })
  }
//车辆管理-列表
  export function deviceCarQuery(data) {
    return request({
      url: '/system/parking/car/query',
      method: 'post',
      params: data
    })
  }
  //车辆管理-列表导出
  export function deviceCarExport(data) {
    return request({
      url: '/system/parking/car/export',
      method: 'post',
      params: data
    })
  }
  
//  车辆管理-修改保存
  export function deviceCarSave(data) {
    return request({
      url: '/system/parking/car/save',
      method: 'post',
      upFile:true,
      data
    })
  }
//   车辆管理-删除
  export function deviceCarDelete(data) {
    return request({
      url: '/system/parking/car/delete',
      method: 'post',
      params: data
    })
  }
  // 后台人员
  export function deviceCarUserQuery(data) {
    return request({
      url: '/system/parking/car/getUsers',
      method: 'post',
      params: data
    })
  }
